package com.fashiontextile.user.service;

import com.fashiontextile.user.entity.Image;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author brooke_zb
 */
public interface ImageService {
    Image getImageById(Long iid);

    List<Image> getImageByPointTo(Long imageTypeId, Long pointTo);

    Image uploadImage(Long did, MultipartFile picture) throws Exception;

    boolean uploadImageLink(List<Image> images);

    boolean deleteImageByPointTo(Long pointTo, Long diid);

    boolean deleteImageById(Long id);
}
